package top.buyibuyi.course.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import top.buyibuyi.course.pojo.Admin;
import top.buyibuyi.course.pojo.Course;

@Mapper
public interface AddCourseDao {
    @Insert("insert into course (cname,learntime,credit,peacetime,midterm,finalc,skill,belongto,cgroup,picture) " +
            "values (#{cname},#{learntime},#{credit},#{peacetime},#{midterm},#{finalc},#{skill},#{belongto},#{cgroup},#{picture})")
    Boolean saveCourse(Course course);
}
